<?php
	$all_page = $dsfm_page->get_all("sar");

	foreach($all_page as $key => $value){
		$page[$value['id']] = $value;
	}

	$staff = $dsfm_user->get_all("staff", "page = $id and year =".$_SESSION['year']);

	foreach($staff as $k => $v){
		if($v['picture'] == "")
			$staff[$k]['picture'] = "http://localhost/kpi/html/images/avatar.png";
	}

	$tpl->assign("staff", $staff);
	$tpl->assign("page", $page);
	$tpl->assign("id", $id);

	$tpl->draw("sar");
?>